<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-05
 * Time: 21:57
 */

namespace App\Services;

/**
 * 退款相关
 * Interface IRefundService
 * @package App\Services
 */
interface IRefundService
{

    /**
     * 师傅相关有退款申请的订单列表
     * @param $master_id
     * @return mixed
     */
    public function listRefund($master_id);

    /**
     * 同意退款
     * @param $refund_id
     * @return mixed
     */
    public function agreeRefund($refund_id);

    /**
     * 管理员仲裁审核退款结果
     * @param $refund_id
     * @param $result_type
     * @param null $result_amount
     * @return mixed
     */
    public function applyArbitrate($refund_id,$result_type,$result_reason,$result_amount);

    /**
     * 管理员处理投诉结果
     * @param $refund_id
     * @param $result_type
     * @param null $result_amount
     * @return mixed
     */
    public function applyComplain($complain_id,$result_type,$result_reason, $punish_amount);

}